package com.ruoyi.shis.service.impl;

import com.ruoyi.shis.domain.ShisPtcg;
import com.ruoyi.shis.mapper.ShisPtcgMapper;
import com.ruoyi.shis.service.IShisPtcgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实时监控_平台查岗Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-07
 */
@Service
public class ShisPtcgServiceImpl implements IShisPtcgService
{
    @Autowired
    private ShisPtcgMapper shisPtcgMapper;

    /**
     * 查询实时监控_平台查岗
     * 
     * @param id 实时监控_平台查岗主键
     * @return 实时监控_平台查岗
     */
    @Override
    public ShisPtcg selectShisPtcgById(Long id)
    {
        return shisPtcgMapper.selectShisPtcgById(id);
    }

    /**
     * 查询实时监控_平台查岗列表
     * 
     * @param shisPtcg 实时监控_平台查岗
     * @return 实时监控_平台查岗
     */
    @Override
    public List<ShisPtcg> selectShisPtcgList(ShisPtcg shisPtcg)
    {
        return shisPtcgMapper.selectShisPtcgList(shisPtcg);
    }

    /**
     * 新增实时监控_平台查岗
     * 
     * @param shisPtcg 实时监控_平台查岗
     * @return 结果
     */
    @Override
    public int insertShisPtcg(ShisPtcg shisPtcg)
    {
        return shisPtcgMapper.insertShisPtcg(shisPtcg);
    }

    /**
     * 修改实时监控_平台查岗
     * 
     * @param shisPtcg 实时监控_平台查岗
     * @return 结果
     */
    @Override
    public int updateShisPtcg(ShisPtcg shisPtcg)
    {
        return shisPtcgMapper.updateShisPtcg(shisPtcg);
    }

    /**
     * 批量删除实时监控_平台查岗
     * 
     * @param ids 需要删除的实时监控_平台查岗主键
     * @return 结果
     */
    @Override
    public int deleteShisPtcgByIds(Long[] ids)
    {
        return shisPtcgMapper.deleteShisPtcgByIds(ids);
    }

    /**
     * 删除实时监控_平台查岗信息
     * 
     * @param id 实时监控_平台查岗主键
     * @return 结果
     */
    @Override
    public int deleteShisPtcgById(Long id)
    {
        return shisPtcgMapper.deleteShisPtcgById(id);
    }
}
